﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;

namespace HZ.Supervise.Model
{
    /// <summary>
    /// 图表配置类
    /// </summary>
    [Serializable]
    public class ChartConfig
    {
        private DataTable _DataSource;
        /// <summary>
        /// 数据源
        /// </summary>
        public DataTable DataSource
        {
            get { return _DataSource; }
            set
            {
                value.TableName = "Taoqi";

                _DataSource = value;
            }
        }

        /// <summary>
        /// X轴字段名称
        /// </summary>
        public string XName { get; set; }

        /// <summary>
        /// Y轴坐标集合(,隔开)
        /// </summary>
        public string YNames { get; set; }

        /// <summary>
        /// 图表类型
        /// </summary>
        public ChartType ChartTypes { get; set; }


    }
}
public enum ChartType
{
    /// <summary>
    /// 柱状图
    /// </summary>
    ColumnChart,
    /// <summary>
    /// 2D线条图
    /// </summary>
    Spline,
    /// <summary>
    /// 饼图
    /// </summary>
    PieChart

}
